home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group01b.txt
/
000076_icon-group-sender_Tue Jun 19 07:44:54 2001.msg
< prev
next >
Wrap
Internet Message Format
|
2002-01-03
|
2KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id f5JEido06712
for icon-group-addresses; Tue, 19 Jun 2001 07:44:39 -0700 (MST)
Message-Id: <200106191444.f5JEido06712@baskerville.CS.Arizona.EDU>
From: Chris.D.Tenaglia@jci.com
Subject: Re: code needed!
To: deborah_fairwater@hotmail.com
Cc: icon-group@cs.arizona.edu
Date: Tue, 19 Jun 2001 09:10:02 -0500
X-MIMETrack: Serialize by Router on jwimkrs1.na.jci.com/NA/Johnson_Controls(Release 5.0.6a
|January 17, 2001) at 06/19/2001 09:27:18 AM
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 1556
#
# file : padsent.icn
# desc : add extra space to end of each sentence
# use : padsent <infile >outfile
#
procedure main()
while line := read() do
{
work := reverse(line)
text := ""
every i := 1 to *work do
{
text ||:= work[i]
if (work[i] == " ") & (work[i+1] == ".") then text ||:= " "
if (work[i] == " ") & (work[i+1] == "?") then text ||:= " "
if (work[i] == " ") & (work[i+1] == "!") then text ||:= " "
}
write(reverse(text))
}
end
deborah_fairwater@h
otmail.com To: icon-group@CS.Arizona.EDU
cc:
06/16/01 03:53 PM Subject: code needed!
Help - I need the icon code that will look at an input text file and
replace single spaces between sentences with double spaces - can anyone
help?
Thank you.